package cn.xueden.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**功能描述：支付宝信息实体类
 * @author:梁志杰
 * @date:2025/6/10
 * @description:cn.xueden.system.model.entity
 * @version:1.0
 */
@Data
@TableName("t_alipay")
public class Alipay implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 支付宝ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 应用ID
     */
    private String appId;

    /**
     * 应用私钥
     */
    private String privateKey;

    /**
     * 支付宝公钥
     */
    private String aliPublicKey;

    /**
     * 支付宝异步回调地址
     */
    private String notifyUrl;

    /**
     * 支付宝同步回调地址
     */
    private String returnUrl;

    @TableField(fill = FieldFill.INSERT)
    private Integer userId;

    @TableLogic
    private Integer isDeleted;

    /**
     * 状态 启用状态0启用，1禁用
     */
    private Integer status;

    /**
     * 类型
     */
    private Integer payType;

    /**
     * 网关地址
     */
    private String gatewayUrl;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
